let routerMethods = {
    components: {},
    data() {
        return {}
    },
    computed: {
    },
    mounted() {
    },
    methods: {
        hasPagePowerKey (key) {
            if (!this._userInfo) return false
            if (this._userInfo.isSuperRole) return true
            let pagePower = this._userInfo.pagePower
            let pageId = this.$route.meta.pageId
            // if (pagePower && !pagePower[pageId]) return true

            if (pageId && pagePower && pagePower[pageId]) {
                return pagePower[pageId].indexOf(key) > -1
            }
            return false
        }
    },
    watch: {}
}
export default routerMethods
